﻿using System;
using System.Windows;
using System.Windows.Controls;

namespace Elderos.Controls
{
    public class HyperlinkLabel : Button
    {
        static HyperlinkLabel()
        {
            DefaultStyleKeyProperty.OverrideMetadata(
                typeof (HyperlinkLabel),
                new FrameworkPropertyMetadata(typeof (HyperlinkLabel))
                );
        }

        public bool IsActive
        {
            get { return (bool)GetValue(IsActiveProperty); }
            set { SetValue(IsActiveProperty, value); }
        }

        // Using a DependencyProperty as the backing store for IsActive.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty IsActiveProperty =
            DependencyProperty.Register("IsActive", typeof(bool), typeof(HyperlinkLabel), new UIPropertyMetadata(false));



        public Uri Uri
        {
            get { return (Uri)GetValue(UriProperty); }
            set { SetValue(UriProperty, value); }
        }

        // Using a DependencyProperty as the backing store for Uri.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty UriProperty =
            DependencyProperty.Register("Uri", typeof(Uri), typeof(HyperlinkLabel), new UIPropertyMetadata(null));



        

    }
}
